﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" ValidateRequest="false" AutoEventWireup="true" CodeBehind="ChannelProduct.aspx.cs" Inherits="CMS.ChannelProduct" %>

<%@ Register Src="~/UserControl/AddProduct.ascx" TagPrefix="usc" TagName="AddProduct" %>
<%@ Register Src="~/UserControl/CRUDSection.ascx" TagPrefix="usc" TagName="CRUDSection" %>
<%@ Register Src="~/UserControl/CRUDCategory.ascx" TagPrefix="usc" TagName="CRUDCategory" %>
<%@ Register Src="~/UserControl/CRUDProduct.ascx" TagPrefix="usc" TagName="CRUDProduct" %>
<%@ Register Src="~/UserControl/EditProduct.ascx" TagPrefix="usc" TagName="EditProduct" %>
<%@ Register Src="~/UserControl/DeleteProduct.ascx" TagPrefix="usc" TagName="DeleteProduct" %>
<%@ Register Src="~/UserControl/CheckQuantity.ascx" TagPrefix="usc" TagName="CheckQuantity" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            font: bold 12px Arial;
            text-align: right;
            height: 47px;
        }

        .auto-style2 {
            height: 47px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="lblMessage" runat="server" CssClass="message" Visible="false" Text=""></asp:Label>
    <div class="page_content">
        <%
            if (Request.QueryString["component"] != null)
            {
                string channel = Request.QueryString["component"].ToString();
                switch (channel)
                {
                    case "prdcreate":
        %>
        <usc:AddProduct runat="server" ID="AddProduct" />
        <%
                        break;
                    case "section":
        %>
        <usc:CRUDSection runat="server" ID="CRUDSection" />
        <%
                        break;
                    case "category":
        %>
        <usc:CRUDCategory runat="server" ID="CRUDCategory" />
        <%
                        break;
                    case "prdupdate":
        %>
        <usc:CRUDProduct runat="server" ID="CRUDProduct" />
        <%
                        break;
                        case "checkquan":
                        %>
        <usc:CheckQuantity runat="server" ID="CheckQuantity" />
        <%
                        break;
                }
            }
        %>
        <%
            if (Request.QueryString["action"] != null)
            {
                string action = Request.QueryString["action"].ToString();
                switch (action)
                {
                    case "pedit":
        %>
        <usc:EditProduct runat="server" ID="EditProduct" />
        <%
                        break;
                        case "pdelete":
                        %>
        <usc:DeleteProduct runat="server" id="DeleteProduct" />
        <%
                        break;
                }
            }
        %>
    </div>
</asp:Content>
